import { getToken, getName } from '@/utils/auth'
export const getHeader = function () {
    const tokenData = getToken() //JSON.parse(window.localStorage.getItem('user'))
    // const username = getName()
    const headers = {
        'Accept': 'application/json',
		'Authorization': `Certification ${tokenData}`,
        // 'username': username
       }
    return headers
}

export const getHeaderName = function () {
    const tokenData = getToken() //JSON.parse(window.localStorage.getItem('user'))
    const username = getName()
    const headers = {
        'Accept': 'application/json',
        'Authorization': `Certification ${tokenData}`,
        // 'LDAP': username
       }
    return headers
}

export const getPMSLink = function (uri) {
	const url = process.env.VUE_APP_PMS_API_HOST + uri;
	return url
}


export const getVersion = function () {
	return 'version'
}
